import request from '@/utils/request'

// 新增其他入库
export function insertStkOtherinstockDetails(data) {
  return request({
    url: '/tStkOtherinstock/insertStkOtherinstockDetails',
    method: 'post',
    data
  })
}

// 其他入库详情
export function queryStkOtherinstockDetails(params) {
  return request({
    url: '/tStkOtherinstock/queryStkOtherinstockDetails',
    method: 'get',
    params
  })
}

// 提交其他入库
export function submitStkOtherinstock(data) {
  return request({
    url: '/tStkOtherinstock/submitStkOtherinstock',
    method: 'post',
    data
  })
}

// 反提交其他入库
export function notsubmitStkOtherinstock(data) {
  return request({
    url: '/tStkOtherinstock/notsubmitStkOtherinstock',
    method: 'post',
    data
  })
}

// 审核其他入库
export function auditStkOtherinstocks(data) {
  return request({
    url: '/tStkOtherinstock/auditStkOtherinstocks',
    method: 'post',
    data
  })
}

// 反审核其他入库
export function unauditStkOtherinstocks(data) {
  return request({
    url: '/tStkOtherinstock/unauditStkOtherinstocks',
    method: 'post',
    data
  })
}

// 删除其他入库
export function delStkOtherinstocks(data) {
  return request({
    url: '/tStkOtherinstock/delStkOtherinstocks',
    method: 'post',
    data
  })
}

// 修改其他入库
export function updateStkOtherinstockDetails(data) {
  return request({
    url: '/tStkOtherinstock/updateStkOtherinstockDetails',
    method: 'post',
    data
  })
}

// 其他入库查询列表
export function queryStkInstockList(data) {
  return request({
    url: '/tStkOtherinstock/queryStkInstockList',
    method: 'post',
    data
  })
}
// 其他入库审批列表
export function queryOtherInStockApprovalList(data) {
  return request({
    url: '/tStkOtherinstock/queryOtherInStockApprovalList',
    method: 'post',
    data
  })
}
// 其他入库不同意
export function otherInStockAuditUnApproval(data) {
  return request({
    url: '/tStkOtherinstock/otherInStockAuditUnApproval',
    method: 'post',
    data
  })
}
// 查询ERP盘盈信息详情  fid
export function queryStkcountGainListDetails(params) {
  return request({
    url: '/tStkStkcountGain/queryStkcountGainListDetails',
    method: 'get',
    params
  })
}
// 新增ERP盘盈
export function insertErpGain(data) {
  return request({
    url: '/tStkStkcountGain/insertErpGain',
    method: 'post',
    data
  })
}
// 修改ERP盘盈
export function updateErpGain(data) {
  return request({
    url: '/tStkStkcountGain/updateErpGain',
    method: 'post',
    data
  })
}
// 删除ERP盘盈
export function deleteErpGain(data) {
  return request({
    url: '/tStkStkcountGain/deleteErpGain',
    method: 'put',
    data
  })
}
// 提交ERP盘盈
export function submitErpGain(data) {
  return request({
    url: '/tStkStkcountGain/submitErpGain',
    method: 'post',
    data
  })
}
// 反提交ERP盘盈
export function notsubmitErpGain(data) {
  return request({
    url: '/tStkStkcountGain/notsubmitErpGain',
    method: 'post',
    data
  })
}
// 审核ERP盘盈
export function reviewErpGain(data) {
  return request({
    url: '/tStkStkcountGain/reviewErpGain',
    method: 'post',
    data
  })
}
// 反审核ERP盘盈
export function notreviewErpGain(data) {
  return request({
    url: '/tStkStkcountGain/notreviewErpGain',
    method: 'post',
    data
  })
}

// 查询ERP盘亏信息详情  fid
export function queryStkcountLossListDetails(params) {
  return request({
    url: '/tStkStkcountLoss/queryStkcountLossListDetails',
    method: 'get',
    params
  })
}
// 新增ERP盘盈
export function insertErpLoss(data) {
  return request({
    url: '/tStkStkcountLoss/insertErpLoss',
    method: 'post',
    data
  })
}
// 修改ERP盘盈
export function updateErpLoss(data) {
  return request({
    url: '/tStkStkcountLoss/updateErpLoss',
    method: 'post',
    data
  })
}
// 删除ERP盘盈
export function deleteErpLoss(data) {
  return request({
    url: '/tStkStkcountLoss/deleteErpLoss',
    method: 'put',
    data
  })
}
// 提交ERP盘盈
export function submitErpLoss(data) {
  return request({
    url: '/tStkStkcountLoss/submitErpLoss',
    method: 'post',
    data
  })
}
// 反提交ERP盘盈
export function notsubmitErpLoss(data) {
  return request({
    url: '/tStkStkcountLoss/notsubmitErpLoss',
    method: 'post',
    data
  })
}
// 审核ERP盘盈
export function reviewErpLoss(data) {
  return request({
    url: '/tStkStkcountLoss/reviewErpLoss',
    method: 'post',
    data
  })
}
// 反审核ERP盘盈
export function notreviewErpLoss(data) {
  return request({
    url: '/tStkStkcountLoss/notreviewErpLoss',
    method: 'post',
    data
  })
}
